Skip to content

fix(ci): include cluster suites in e2e matrix - #7552

Merged
dengliming merged 1 commit into
masterfrom
fix/7478-cluster-e2e-resolution
Oct 12, 2026
Merged

dengliming merged 1 commit into
masterfrom
fix/7478-cluster-e2e-resolution

Conversation

@dmsolr

@dmsolr dmsolr commented Oct 12, 2026

Copy link
Copy Markdown
Member

Background

The CI case resolver omitted the existing cluster E2E module, so cluster-specific and full E2E runs did not schedule its JDBC or ZooKeeper suites.

Changes

  • Add the cluster JDBC and ZooKeeper scripts to full E2E resolution.
  • Route direct cluster-case and cluster-domain changes to both suites.
  • Map both scripts to shenyu-e2e-case-cluster and the HTTP example project.
  • Add resolver regression coverage for direct, domain, and full-run selection.

The SOFA suite mentioned in the original issue was removed from this repository by #7494, so no SOFA matrix entry is added against the current master.

Verification

  • PATH="/opt/homebrew/bin:$PATH" BASH_COMPAT=5.2 /opt/homebrew/bin/bash .github/scripts/resolve-test-case-matrix-test.sh
  • bash -n .github/scripts/resolve-test-case-matrix.sh
  • bash -n .github/scripts/resolve-test-case-matrix-test.sh
  • git diff --check

Fixes #7478

@Aias00 Aias00 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review: include cluster suites in e2e matrix

Approving. CI-only change that wires the cluster e2e suites (e2e-cluster-jdbc-compose, e2e-cluster-zookeeper-compose) into the test matrix so cluster-code changes actually get validated.

What I verified:

  • .github/scripts/resolve-test-case-matrix.sh (the resolver): add_e2e_all() now registers both cluster composes; map_direct_case_path adds them for the shenyu-e2e-case-cluster/* tree; map_domain_path adds them for any *cluster*|*Cluster* path when mode == e2e; and the final e2e_matrix jq builder maps both compose names to case: "shenyu-e2e-case-cluster" with example_projects: ":shenyu-examples-http".
  • .github/scripts/resolve-test-case-matrix-test.sh (the resolver's own test): adds E2E_CLUSTER and CLUSTER_SERVICE path constants, defines CLUSTER_E2E_MATRIX, an ALL_E2E_MATRIX (admin-register matrix extended with rocketmq + both cluster suites), and CLUSTER_SERVICE_E2E_MATRIX (cluster suites + all non-cluster suites, de-duplicated via select(.case != "shenyu-e2e-case-cluster")). It then asserts assert_ci_ignored for the cluster path and assert_file_output for both new matrices, and replaces the old pom.xml assertion to use ALL_E2E_MATRIX (behavior-preserving superset of the prior rocketmq-only expectation).
  • The jq expressions are valid (--argjson for both matrices; += and map(select(...)) both well-formed) and the CLUSTER_SERVICE_E2E_MATRIX correctly avoids double-scheduling the cluster case.

Tests: the script's self-test (resolve-test-case-matrix-test.sh) exercises every new assertion and is part of the changes / matrix CI jobs, which are green.

Non-blocking suggestion: map_domain_path uses a case-sensitive *cluster* glob; if any future cluster path uses e.g. ClusterForward vs clusterForward the *Cluster* arm covers the camelCase variant, so both are handled — good. No change needed.

Merging.

@dengliming
dengliming merged commit 2f83f9a into master Oct 12, 2026
25 checks passed
@yuluo-yx
yuluo-yx deleted the fix/7478-cluster-e2e-resolution branch November 4, 2026 15:15
@Aias00 Aias00 added this to the 2.7.2 milestone Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Task] Add existing SOFA and cluster E2E suites to CI case resolution

3 participants